/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package uk.ac.bath.domains;

import uk.ac.bath.base.EnvironmentIF;
import uk.ac.bath.base.MachineFactoryIF;
import uk.ac.bath.base.EnvironmentFactoryIF;
import uk.ac.bath.domains.prey.CellFactory;
import uk.ac.bath.domains.prey.PreyEnvironment;
import uk.ac.bath.domains.prey.PreySpace;

/**
 *
 * @author pjl
 */
public class PreyProvider extends EnvironmentFactoryIF {

    int spaceSize = 60;
    private MachineFactoryIF factory;

    public PreyProvider(MachineFactoryIF factory,String name) {
        super(name);
        this.factory=factory;
    }

    public EnvironmentIF create() {

        PreySpace space = new PreySpace(spaceSize, spaceSize);

        // MoverCellMrk1Factory factory = new MoverCellMrk1Factory();
        CellFactory cellFactory = new CellFactory(factory);
        EnvironmentIF env = new PreyEnvironment(space, cellFactory);
        return env;
    }

//    @Override
//    public View createSimulationView(EnvironmentIF env) {
//        return new PreyView((PreyViewable) env);
//    }
}
